import request from "@/utils/request"
//根据商品id获取商品详情的接口
export const detailGetGoodsDetail = (id) => request.get('/goods', { params: { id } })

//根据商品id获取商品热榜数据
/**
 * 获取热榜商品
 * @param {Number} id - 商品id
 * @param {Number} type - 1代表24小时热销榜 2代表周热销榜
 * @param {Number} limit - 获取个数
 */
export const detailGetGoodsHotdata = (data) => request.get('/goods/hot', data)
